home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / LowMemEqu.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  24.9 KB  |  563 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        LowMemEqu.a
  3. ;
  4. ;    Contains:    EQUates for low-mem locations.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__LOWMEMEQU__') = 'UNDEFINED' THEN
  21. __LOWMEMEQU__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     ; this file is only for classic 68K - not CFM 68K or PowerPC
  29.     
  30.     IF ¬ GENERATINGCFM THEN
  31.  
  32. ;___________________________________________________________________________
  33. ; LowMemEqu.a is a stepping stone to the Universal AIncludes.  
  34. ;
  35. ; When converting classic 68K assembly source to use the Universal AIncludes
  36. ; it is recommended to compare the object code produced before and after
  37. ; the conversion.  But, use of the _LMGetXXX accessors can generate different
  38. ; object code than use of an EQU from the old SysEqu.a file.  Therefore,
  39. ; this file exists so that you can continue to use EQU's to access lowmem
  40. ; (in classic 68K code only) while converting everything else to use
  41. ; the Universal AIncludes.  Once the object code comparison checks out and
  42. ; the conversion is complete (except for lowmem), this file can be removed
  43. ; and LowMem.a used instead.
  44. ;
  45. ;___________________________________________________________________________
  46.  
  47.  
  48.  
  49. PCDeskPat         EQU         $20B                      ; desktop pat, top bit only! others are in use
  50. HiKeyLast         EQU         $216                      ; Same as KbdVars
  51. KbdLast           EQU         $218                      ; Same as KbdVars+2
  52. ExpandMem         EQU         $2B6                      ; pointer to expanded memory block
  53.  
  54. ; start at $C00
  55.  
  56. SCSIBase          EQU         $0C00                     ; (long) base address for SCSI chip read
  57. SCSIDMA           EQU         $0C04                     ; (long) base address for SCSI DMA
  58. SCSIHsk           EQU         $0C08                     ; (long) base address for SCSI handshake
  59. SCSIGlobals       EQU         $0C0C                     ; (long) ptr for SCSI mgr locals
  60. RGBBlack          EQU         $0C10                     ; (6 bytes) the black field for color
  61. RGBWhite          EQU         $0C16                     ; (6 bytes) the white field for color
  62.  
  63. RowBits           EQU         $0C20                     ; (word) screen horizontal pixels
  64. ColLines          EQU         $0C22                     ; (word) screen vertical pixels
  65. ScreenBytes       EQU         $0C24                     ; (long) total screen bytes
  66.  
  67. NMIFlag           EQU         $0C2C                     ; (byte) flag for NMI debounce
  68. VidType           EQU         $0C2D                     ; (byte) video board type ID
  69. ScrnInval        EQU            $0C2D                    ; (byte) replaces obscure VidType.  When $FFFF, scrn resource is
  70.                                                     ;        valid.  When cleared, scrn resource is invalid.
  71. VidMode           EQU         $0C2E                     ; (byte) video mode (4=4bit color)
  72. SCSIPoll          EQU         $0C2F                     ; (byte) poll for device zero only once.
  73.  
  74. SEVarBase         EQU         $0C30                     ; ($0C30-0CB0) 128 bytes for sys err data
  75.  
  76. MMUFlags          EQU         $0CB0                     ; (byte) cleared to zero (reserved for future use)
  77. MMUType           EQU         $0CB1                     ; (byte) kind of MMU present
  78. MMU32bit          EQU         $0CB2                     ; (byte) boolean reflecting current machine MMU mode
  79. MMUTbl            EQU         $0CB4                     ; (long) pointer to MMU Mapping table
  80. MMUTblSize        EQU         $0CB8                     ; (long) size of the 24 bit mode MMU mapping table
  81. MMU24Info         EQU         $0CB4                      ; (long) ptr to 24 bit mode MMU configuration info
  82. MMU32Info         EQU         $0CB8                     ; (long) ptr to 32 bit mode MMU configuration info
  83. SInfoPtr          EQU         $0CBC                     ; (long) pointer to Slot manager information
  84. ASCBase           EQU         $0CC0                     ; (long) pointer to Sound Chip
  85. SMGlobals         EQU         $0CC4                     ; (long) pointer to Sound Manager Globals
  86. TheGDevice        EQU         $0CC8                     ; (long) the current graphics device
  87. CQDGlobals        EQU         $0CCC                     ; (long) quickDraw global extensions
  88.  
  89. ; TEMPORARY EQUATE
  90. DeskCPat          EQU         $0CD8                     ; [PixPatHandle] Handle to desk pixPat
  91.  
  92. TimeVIADB         EQU         $0CEA                     ; (word) number of iter's of VIA access & DBRA.    
  93.  
  94. VIA2               EQU         $0CEC                     ; VIA2 base address [pointer]                    
  95. RBV                EQU            VIA2                    ; RBV base address [pointer] share with VIA2    
  96. VIA2RBV           EQU         VIA2                     ; VIA2 or RBV base address [pointer]            
  97. OSS                EQU            VIA2                    ; OSS base address [pointer] share with VIA2    
  98. VIA2RBVOSS       EQU         VIA2                     ; VIA2 or RBV or OSS base address [pointer]        
  99. VISA            EQU            VIA2                    ; VISA base address [pointer]                    
  100. V8                EQU            VIA2                    ; V8 base address [pointer]
  101.  
  102. WarmStart         EQU         $0CFC                     ; (long) flag to indicate it is a warm start
  103. TimeDBRA          EQU         $0D00                     ; (word) number of iterations of DBRA per millisecond
  104. TimeSCCDB         EQU         $0D02                     ; (word) number of iter's of SCC access & DBRA.
  105.  
  106. PmgrBase          EQU         $0D18                      ; Lomem pointer to power manager vars
  107.  
  108. TableSeed         EQU         $0D20                     ; (long) seed value for color table ID's
  109. SRsrcTblPtr       EQU         $0D24                     ; (long) pointer to slot resource table.
  110. JVBLTask          EQU         $0D28                     ; vector to slot VBL task interrupt handler
  111. WMgrCPort         EQU         $0D2C                     ; window manager color port
  112. VertRRate         EQU         $0D30                     ; (word) Vertical refresh rate for start manager.
  113.  
  114. ChunkyDepth       EQU         $0D60                     ; depth of the pixels
  115. CrsrPtr           EQU         $0D62                     ; pointer to cursor save area
  116. PortList          EQU         $0D66                     ; list of grafports
  117. MickeyBytes       EQU         $0D6A                     ; long pointer to cursor stuff
  118. QDErr             EQU         $0D6E                     ; QuickDraw error code [word]
  119. VIA2DT            EQU         $0D70                     ; 32 bytes for VIA2 dispatch table for NuMac
  120.  
  121. SInitFlags        EQU         $0D90                     ; StartInit.a flags [word]
  122. DTQueue           EQU         $0D92                     ; (10 bytes) deferred task queue header
  123. DTQFlags          EQU         $0D92                     ; flag word for DTQueue
  124. DTskQHdr          EQU         $0D94                     ; ptr to head of queue
  125. DTskQTail         EQU         $0D98                     ; ptr to tail of queue
  126. JDTInstall        EQU         $0D9C                     ; (long) ptr to deferred task install routine
  127. HiliteRGB         EQU         $0DA0                     ; 6 bytes: rgb of hilite color
  128. DSCtrAdj          EQU         $0DA8                     ; (long) Center adjust for DS rect.
  129. IconTLAddr        EQU         $0DAC                     ; (long) pointer to where start icons are to be put.
  130. VideoInfoOK       EQU         $0DB0                     ; (long) Signals to CritErr that the Video card is ok
  131. EndSRTPtr         EQU         $0DB4                     ; (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).
  132. SDMJmpTblPtr      EQU         $0DB8                     ; (long) Pointer to the SDM jump table
  133. JSwapMMU          EQU         $0DBC                     ; (long) jump vector to SwapMMU routine
  134. SdmBusErr         EQU         $0DC0                     ; (long) Pointer to the SDM busErr handler
  135. LastTxGDevice     EQU         $0DC4                     ; (long) copy of TheGDevice set up for fast text measure
  136.  
  137. NewCrsrJTbl       EQU         $88C                      ; location of new crsr jump vectors
  138. JAllocCrsr        EQU         $88C                      ; (long) vector to routine that allocates cursor
  139. JSetCCrsr         EQU         $890                      ; (long) vector to routine that sets color cursor
  140. JOpcodeProc       EQU         $894                      ; (long) vector to process new picture opcodes
  141. CRSRBASE          EQU         $898                      ; (long) scrnBase for cursor
  142. CrsrDevice        EQU         $89C                      ; (long) current cursor device
  143. SrcDevice         EQU         $8A0                      ; (LONG) Src device for Stretchbits
  144. MainDevice        EQU         $8A4                      ; (long) the main screen device
  145. DeviceList        EQU         $8A8                      ; (long) list of display devices
  146. CRSRROW           EQU         $8AC                      ; (word) rowbytes for current cursor screen
  147. QDColors          EQU         $8B0                      ; (long) handle to default colors
  148.  
  149. ; QuickDraw
  150.  
  151. HiliteMode        EQU         $938                      ; used for color highlighting
  152.  
  153.  
  154. ; Exception vectors
  155.  
  156. BusErrVct         EQU         $008                   ; bus error vector
  157. AddrVector        EQU            $00C                ; address error
  158. IlglVector        EQU            $010                ; illegal instruction
  159. ZeroVector        EQU            $014                ; divide by 0
  160. CheckVector        EQU            $018                ; check bounds error
  161. TrapVVector        EQU            $01C                ; trapv location
  162. PrivlgVector    EQU            $020                ; privilege violation
  163. TraceVector        EQU            $024                ; trace exception vector
  164. Line1010          EQU         $028                   ; 1010 emulator trap (system routines)
  165. Line1111          EQU         $02C                   ; 1111 emulator trap (reserved)
  166. DebugVector        EQU            Line1111            ; debug instructions
  167. FmtErrVect        EQU         $038                   ; format error vector for 68010/68020
  168. BadIntVector    EQU            $060                ; spurious interrupt
  169. AutoInt1          EQU         $064                   ; level 1 auto-vector
  170. AutoInt2          EQU         $068                   ; level 2 auto-vector
  171. AutoInt3          EQU         $06C                   ; level 3 auto-vector
  172. AutoInt4          EQU         $070                   ; level 4 auto-vector
  173. AutoInt5          EQU         $074                   ; level 5 auto-vector
  174. AutoInt6          EQU         $078                   ; level 6 auto-vector
  175. AutoInt7          EQU         $07C                   ; level 7 auto-vector
  176. BkptVector        EQU            $0B8                ; break loc
  177.  
  178. ;+ System Error Handler
  179.  
  180. RestProc          EQU         $A8C                      ; Resume procedure f InitDialogs [pointer]
  181.  
  182.  
  183. ; Topanga video mode for Esprit
  184. NTSC               EQU         $B3E                      ; A byte                        
  185.  
  186.  
  187. ;+ ROM Equates
  188.  
  189. ROM85             EQU         $28E                      ; (word) actually high bit - 0 for ROM vers $75 (sic) and later
  190. ROMMapHndl        EQU         $B06                      ; (long) handle of ROM resource map
  191.  
  192. ;+ Screen Equates
  193.  
  194. ScrVRes           EQU         $102                      ; screen vertical dots/inch [word]
  195. ScrHRes           EQU         $104                      ; screen horizontal dots/inch [word]
  196. ScrnBase          EQU         $824                      ; Screen Base [pointer]
  197. ScreenRow         EQU         $106                      ; rowBytes of screen [word]
  198.  
  199.  
  200. ; Mouse/Keyboard
  201.  
  202. MBTicks           EQU         $16E                      ; tick count @ last mouse button [long]
  203. JKybdTask         EQU         $21A                      ; keyboard VBL task hook [pointer]
  204. KeyLast           EQU         $184                      ; ASCII for last valid keycode [word]
  205. KeyTime           EQU         $186                      ; tickcount when KEYLAST was rec'd [long]
  206. KeyRepTime        EQU         $18A                      ; tickcount when key was last repeated [long]
  207.  
  208. ;+ Parameter RAM (a twenty byte copy of the real parameter ram).
  209.  
  210. SPConfig          EQU         $1FB                      ; config bits: 4-7 A, 0-3 B (see use type below)
  211. SPPortA           EQU         $1FC                      ; SCC port A configuration [word]
  212. SPPortB           EQU         $1FE                      ; SCC port B configuration [word]
  213.  
  214. ; SCC Serial Chip Addresses
  215.  
  216. SCCRd             EQU         $1D8                      ; SCC base read address [pointer]
  217. SCCWr             EQU         $1DC                      ; SCC base write address [pointer]
  218.  
  219. ; Unpacked, user versions of parameter ram
  220.  
  221. DoubleTime        EQU         $2F0                      ; double click ticks [long]
  222. CaretTime         EQU         $2F4                      ; caret blink ticks [long]
  223. KeyThresh         EQU         $18E                      ; threshold for key repeat [word]
  224. KeyRepThresh      EQU         $190                      ; key repeat speed [word]
  225. SdVolume          EQU         $260                      ; Global volume(sound) control [byte]
  226.  
  227.  
  228. ;+ System Clocks
  229.  
  230. Ticks             EQU         $16A                      ; Tick count, time since boot [long]
  231. Time              EQU         $20C                      ; clock time (extrapolated) [long]
  232.  
  233.  
  234. ;+ Event Manager
  235.  
  236. MonkeyLives       EQU         $100                      ; monkey lives if >= 0 [word]
  237. SEvtEnb           EQU         $15C                      ; enable SysEvent calls from GNE [byte]
  238. JournalFlag       EQU         $8DE                      ; journaling state [word]
  239. JournalRef        EQU         $8E8                      ; Journalling driver's refnum [word]
  240.  
  241.  
  242. ;+ Memory Manager
  243.  
  244. BufPtr            EQU         $10C                      ; top of application memory [pointer]
  245. StkLowPt          EQU         $110                      ; Lowest stack as measured in VBL task [pointer]
  246. TheZone           EQU         $118                      ; current heap zone [pointer]
  247. ApplLimit         EQU         $130                      ; application limit [pointer]
  248. SysZone           EQU         $2A6                      ; system heap zone [pointer]
  249. ApplZone          EQU         $2AA                      ; application heap zone [pointer]
  250. HeapEnd           EQU         $114                      ; end of heap [pointer]
  251. HiHeapMark        EQU         $BAE                      ; (long) highest address used by a zone below sp
  252. MemErr            EQU         $220                      ; last memory manager error [word]
  253.  
  254. ; Driver Globals
  255.  
  256. UTableBase        EQU         $11C                      ; unit I/O table [pointer]
  257. UnitNtryCnt       EQU         $1D2                      ; count of entries in unit table [word]
  258. JFetch            EQU         $8F4                      ; fetch a byte routine for drivers [pointer]
  259. JStash            EQU         $8F8                      ; stash a byte routine for drivers [pointer]
  260. JIODone           EQU         $8FC                      ; IODone entry location [pointer]
  261.  
  262.  
  263. ; File System Globals
  264.  
  265. DrvQHdr           EQU         $308                      ; queue header of drives in system [10 bytes]
  266. BootDrive         EQU         $210                      ; drive number of boot drive [word]
  267. EjectNotify       EQU         $338                      ; eject notify procedure [pointer]
  268. IAZNotify         EQU         $33C                      ; world swaps notify procedure [pointer]
  269. SFSaveDisk        EQU         $214                      ; last vRefNum seen by standard file [word]
  270. CurDirStore       EQU         46+$36A                   ; save dir across calls to Standard File [long]
  271.  
  272. ;+ Miscellaneous stuff
  273.  
  274. OneOne            EQU         $A02                      ; constant $00010001 [long]
  275. MinusOne          EQU         $A06                      ; constant $FFFFFFFF [long]
  276. Lo3Bytes          EQU         $31A                      ; constant $00FFFFFF [long]
  277. ROMBase           EQU         $2AE                      ; ROM base address [pointer]
  278. RAMBase           EQU         $2B2                      ; RAM base address [pointer]
  279. SysVersion        EQU         $15A                      ; version # of RAM-based system [word]
  280. RndSeed           EQU         $156                      ; random seed/number [long]
  281.  
  282. ;+ Scratch Areas
  283.  
  284. Scratch20         EQU         $1E4                      ; scratch [20 bytes]
  285. Scratch8          EQU         $9FA                      ; scratch [8 bytes]
  286.  
  287.  
  288. ;+ Scrap Manager
  289.  
  290. ScrapVars         EQU         $960                      ; scrap manager variables [32 bytes]
  291. ScrapInfo         EQU         $960                      ; scrap length [long]
  292. ScrapSize         EQU         $960                      ; scrap length [long]
  293. ScrapHandle       EQU         $964                      ; memory scrap [handle]
  294. ScrapCount        EQU         $968                      ; validation byte [word]
  295. ScrapState        EQU         $96A                      ; scrap state [word]
  296. ScrapName         EQU         $96C                      ; pointer to scrap name [pointer]
  297. ScrapEnd          EQU         $980                      ; end of scrap vars
  298. ScrapTag          EQU         $970                      ; scrap file name [STRING[15]]
  299.  
  300.           
  301. ;International stuff
  302.  
  303. IntlSpec          EQU         $BA0                      ; (long) - ptr to extra Intl data
  304.  
  305. ;Switcher
  306.  
  307. SwitcherTPtr      EQU         $286                      ; Switcher's switch table
  308.  
  309.  
  310. ; Peripheral chips and Magic Hardware addresses
  311.  
  312. CPUFlag           EQU         $12F                      ; $00=68000, $01=68010, $02=68020 (old ROM inits to $00)
  313.  
  314. ; VIA (6522) interface chip
  315.  
  316. VIA               EQU         $1D4                      ; VIA base address [pointer]
  317.  
  318. ; Disk Address
  319.  
  320. IWM               EQU         $1E0                      ; IWM base address [pointer]
  321.  
  322.  
  323. ; Interrupt secondary vectors
  324.  
  325. Lvl1DT            EQU         $192                      ; Interrupt level 1 dispatch table [32 bytes]
  326. Lvl2DT            EQU         $1B2                      ; Interrupt level 2 dispatch table [32 bytes]
  327. ExtStsDT          EQU         $2BE                      ; SCC ext/sts secondary dispatch table [16 bytes]
  328.  
  329.  
  330. ; Parameter Ram
  331.  
  332. SPValid           EQU         $1F8                      ; validation field ($A7) [byte]
  333. SPATalkA          EQU         $1F9                      ; AppleTalk node number hint for port A
  334. SPATalkB          EQU         $1FA                      ; AppleTalk node number hint for port B
  335. SPAlarm           EQU         $200                      ; alarm time [long]
  336. SPFont            EQU         $204                      ; default application font number minus 1 [word]
  337. SPKbd             EQU         $206                      ; kbd repeat thresh in 4/60ths [2 4-bit]
  338. SPPrint           EQU         $207                      ; print stuff [byte]
  339. SPVolCtl          EQU         $208                      ; volume control [byte]
  340. SPClikCaret       EQU         $209                      ; double click/caret time in 4/60ths[2 4-bit]
  341. SPMisc1           EQU         $20A                      ; miscellaneous [1 byte]
  342. SPMisc2           EQU         $20B                      ; miscellaneous [1 byte]
  343. GetParam          EQU         $1E4                      ; system parameter scratch [20 bytes]
  344. SysParam          EQU         $1F8                      ; system parameter memory [20 bytes]
  345.  
  346. ; Cursor
  347.  
  348. CrsrThresh        EQU         $8EC                      ; delta threshold for mouse scaling [word]
  349. JCrsrTask         EQU         $8EE                      ; address of CrsrVBLTask [long]
  350. MTemp             EQU         $828                      ; Low-level interrupt mouse location [long]
  351. RawMouse          EQU         $82C                      ; un-jerked mouse coordinates [long]
  352. CrsrRect          EQU         $83C                      ; Cursor hit rectangle [8 bytes]
  353. TheCrsr           EQU         $844                      ; Cursor data, mask & hotspot [68 bytes]
  354. CrsrAddr          EQU         $888                      ; Address of data under cursor [long]
  355. CrsrSave          EQU         $88C                      ; data under the cursor [64 bytes]
  356. CrsrVis           EQU         $8CC                      ; Cursor visible? [byte]
  357. CrsrBusy          EQU         $8CD                      ; Cursor locked out? [byte]
  358. CrsrNew           EQU         $8CE                      ; Cursor changed? [byte]
  359. CrsrState         EQU         $8D0                      ; Cursor nesting level [word]
  360. CrsrObscure       EQU         $8D2                      ; Cursor obscure semaphore [byte]
  361.  
  362. ; Mouse/Keyboard
  363.  
  364. KbdVars           EQU         $216                      ; Keyboard manager variables [4 bytes]
  365. KbdType           EQU         $21E                      ; keyboard model number [byte]
  366. MBState           EQU         $172                      ; current mouse button state [byte]
  367. KeyBrdMap        EQU         $174                      ; bitmap of the keyboard [2 longs]
  368. KeypadMap         EQU         $17C                      ; bitmap for numeric pad-18bits [long]
  369. Key1Trans         EQU         $29E                      ; keyboard translator procedure [pointer]
  370. Key2Trans         EQU         $2A2                      ; numeric keypad translator procedure [pointer]
  371. JGNEFilter        EQU         $29A                      ; GetNextEvent filter proc [pointer]
  372. KeyMVars          EQU         $B04                      ; (word) for ROM KEYM proc state
  373. Mouse             EQU         $830                      ; processed mouse coordinate [long]
  374. CrsrPin           EQU         $834                      ; cursor pinning rectangle [8 bytes]
  375. CrsrCouple        EQU         $8CF                      ; cursor coupled to mouse? [byte]
  376. CrsrScale         EQU         $8D3                      ; cursor scaled? [byte]
  377. MouseMask         EQU         $8D6                      ; V-H mask for ANDing with mouse [long]
  378. MouseOffset       EQU         $8DA                      ; V-H offset for adding after ANDing [long]
  379.  
  380. ; System Clocks
  381.  
  382. AlarmState        EQU         $21F                      ; Bit7=parity, Bit6=beeped, Bit0=enable [byte]
  383.  
  384.  
  385. ;+ Vertical Blanking Interrupt Handler
  386.  
  387. VBLQueue          EQU         $160                      ; VBL queue header [10 bytes]
  388.  
  389. ; Event manager
  390.  
  391. SysEvtMask        EQU         $144                      ; system event mask [word]
  392. SysEvtBuf         EQU         $146                      ; system event queue element buffer [pointer]
  393. EventQueue        EQU         $14A                      ; event queue header [10 bytes]
  394. EvtBufCnt         EQU         $154                      ; max number of events in SysEvtBuf - 1 [word]
  395.  
  396. ; Memory manager
  397.  
  398. GZRootHnd         EQU         $328                      ; root handle for GrowZone [handle]
  399. GZRootPtr         EQU         $32C                      ; root pointer for GrowZone [pointer]
  400. GZMoveHnd         EQU         $330                      ; moving handle for GrowZone [handle]
  401. MemTop            EQU         $108                      ; top of memory [pointer]
  402. MmInOK            EQU         $12E                      ; initial memory mgr checks ok? [byte]
  403. HpChk             EQU         $316                      ; heap check RAM code [pointer]
  404. MaskBC            EQU         $31A                      ; Memory Manager Byte Count Mask [long]
  405. MaskHandle        EQU         $31A                      ; Memory Manager Handle Mask [long]
  406. MaskPtr           EQU         $31A                      ; Memory Manager Pointer Mask [long]
  407. MinStack          EQU         $31E                      ; min stack size used in InitApplZone [long]
  408. DefltStack        EQU         $322                      ; default size of stack [long]
  409. MMDefFlags        EQU         $326                      ; default zone flags [word]
  410.  
  411. ;+ System Error Handler
  412.  
  413. DSAlertTab        EQU         $2BA                      ; system error alerts [pointer]
  414. DSAlertRect       EQU         $3F8                      ; rectangle for disk-switch alert [8 bytes]
  415. DSDrawProc        EQU         $334                      ; alternate syserror draw procedure [pointer]
  416. DSWndUpdate       EQU         $15D                      ; GNE not to paintBehind DS AlertRect? [byte]
  417. WWExist           EQU         $8F2                      ; window manager initialized? [byte]
  418. QDExist           EQU         $8F3                      ; quickdraw is initialized [byte]
  419. ResumeProc        EQU         $A8C                      ; Resume procedure from InitDialogs [pointer]
  420. DSErrCode         EQU         $AF0                      ; last system error alert ID
  421.  
  422. ; Serial I/O Driver
  423.  
  424. SerialVars        EQU         $2D0                      ; async driver variables [16 bytes]
  425. ABusVars          EQU         $2D8                      ; Pointer to AppleTalk local variables
  426. ABusDCE           EQU         $2DC                      ; Pointer to AppleTalk DCE
  427. PortAUse          EQU         $290                      ; bit 7: 1 = not in use, 0 = in use
  428. ; bits 0-3: current use of port (see use type)
  429. ; bits 4-6: user specific
  430. PortBUse          EQU         $291                      ; port B use, same format as PortAUse
  431. SCCASts           EQU         $2CE                      ; SCC read reg 0 last ext/sts rupt - A [byte]
  432. SCCBSts           EQU         $2CF                      ; SCC read reg 0 last ext/sts rupt - B [byte]
  433.  
  434.  
  435. DskErr            EQU         $142                      ; disk routine result code [word]
  436. PWMBuf2           EQU         $312                      ; PWM buffer 1 (or 2 if sound) [pointer]
  437.  
  438. ; Sound Stuff
  439.  
  440. SoundPtr          EQU         $262                      ; 4VE sound definition table [pointer]
  441. SoundBase         EQU         $266                      ; sound bitMap [pointer]
  442. SoundVBL          EQU         $26A                      ; vertical retrace control element [16 bytes]
  443. SoundDCE          EQU         $27A                      ; sound driver DCE [pointer]
  444. SoundActive       EQU         $27E                      ; sound is active? [byte]
  445. SoundLevel        EQU         $27F                      ; current level in buffer [byte]
  446. CurPitch          EQU         $280                      ; current pitch value [word]
  447.  
  448. ; I/O System
  449.  
  450. ToExtFS           EQU         $3F2                      ; hook for external file systems
  451.  
  452. ; File System Globals
  453.  
  454. DskVerify         EQU         $12C                      ; used by 3.5 disk driver for read/verify [byte]
  455. TagData           EQU         $2FA                      ; sector tag info for disk drivers [14 bytes]
  456. BufTgFNum         EQU         $2FC                      ; file number [long]
  457. BufTgFFlg         EQU         $300                      ; flags [word]
  458. BufTgFBkNum       EQU         $302                      ; logical block number [word]
  459. BufTgDate         EQU         $304                      ; time stamp [word]
  460.  
  461. ; Print variables
  462.  
  463. ScrDmpEnb         EQU         $2F8                      ; screen dump enabled? [byte]
  464. ScrDmpType        EQU         $2F9                      ; FF dumps screen, FE dumps front window [byte]
  465.  
  466.  
  467. ; Segment Loader
  468.  
  469. LaunchFlag        EQU         $902                      ; from launch or chain [byte]
  470. SaveSegHandle     EQU         $930                      ; seg 0 handle [handle]
  471. CurJTOffset       EQU         $934                      ; current jump table offset [word]
  472. CurPageOption     EQU         $936                      ; current page 2 configuration [word]
  473. LoaderPBlock      EQU         $93A                      ; param block for ExitToShell [10 bytes]
  474. CurApRefNum       EQU         $900                      ; refNum of application's resFile [word]
  475. CurrentA5         EQU         $904                      ; current value of A5 [pointer]
  476. CurStackBase      EQU         $908                      ; current stack base [pointer]
  477. CurApName         EQU         $910                      ; name of application [STRING[31]]
  478. LoadTrap          EQU         $12D                      ; trap before launch? [byte]
  479. SegHiEnable       EQU         $BB2                      ; (byte) 0 to disable MoveHHi in LoadSeg
  480.  
  481.  
  482. ; Background Notification Manager
  483.  
  484. BNMQHd            EQU         $B60                      ; head of background notification Q
  485.  
  486.  
  487. ; Communications Toolbox Globals Pointer
  488.  
  489. CommToolboxGlobals    EQU         $BB4                  ; [long] pointer to CTB Globals 
  490.  
  491.  
  492. FCBSPtr           EQU         $34E                      ; ptr to FCBs
  493. DefVCBPtr         EQU         $352                      ; pointer to default VCB
  494. FSFCBLen          EQU         $3F6                      ; HFS present flag / FCB size (-1 in old ROM)
  495. RomFont0          EQU         $980                      ; system font [handle]
  496. ApFontID          EQU         $984                      ; resource ID of application font [word]
  497. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  498. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  499. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  500. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  501. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  502. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  503. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  504. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  505. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  506. OldContent        EQU         $9EA                      ; saved content region [handle]
  507. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  508. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  509. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  510. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  511. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  512. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  513. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  514. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  515. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  516. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  517. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  518. SysMapHndl        EQU         $A54                      ; system map [handle]
  519. SysMap            EQU         $A58                      ; reference number of system map [word]
  520. CurMap            EQU         $A5A                      ; reference number of current map [word]
  521. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  522. ResErr            EQU         $A60                      ; Resource error code [word]
  523. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  524. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  525. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  526. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  527. ANumber           EQU         $A98                      ; active alert ID [word]
  528. ACount            EQU         $A9A                      ; # times this alert called [word]
  529. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  530. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  531. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  532. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  533. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  534. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  535. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  536. AtalkHk2          EQU         $B18                      ; (long) Appletalk hook
  537. SCSIFlag          EQU         $B22                      ; (word) Configuration Flag for SCSI
  538. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  539. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  540. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  541. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  542. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  543. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  544. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  545. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  546. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  547. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  548.  
  549. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  550. PrintErr          EQU         $944                      ; Current Printer Error
  551. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  552. AuxWinHead        EQU         $0CD0                     ; [handle] Window Aux List head
  553. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  554. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  555. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  556. TimeSCSIDB        EQU            $0B24                    ; DBRAs & SCSI access per millisecond 
  557.  
  558.     ENDIF ; ¬ GENERATINGCFM 
  559.  
  560.  
  561.     ENDIF ; __LOWMEMEQU__
  562.